package com.ledi.guns.common.persistence.model;

import java.io.Serializable;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * </p>
 *
 * @author ledi
 * @since 2017-11-30
 */
@TableName("t_bill_item")
public class BillItem extends Model<BillItem> {

	private static final long	serialVersionUID	= 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Long				id;
	/**
	 * 账单ID
	 */
	@TableField("billl_detail_id")
	private String				billlDetailId;
	/**
	 * 项目名称
	 */
	@TableField("item_name")
	private String				itemName;
	/**
	 * 项目缴费金额
	 */
	@TableField("item_money")
	private BigDecimal			itemMoney;

	public Long getId() {

		return id;
	}

	public void setId(Long id) {

		this.id = id;
	}

	public String getBilllDetailId() {

		return billlDetailId;
	}

	public void setBilllDetailId(String billlDetailId) {

		this.billlDetailId = billlDetailId;
	}

	public String getItemName() {

		return itemName;
	}

	public void setItemName(String itemName) {

		this.itemName = itemName;
	}

	public BigDecimal getItemMoney() {

		return itemMoney;
	}

	public void setItemMoney(BigDecimal itemMoney) {

		this.itemMoney = itemMoney;
	}

	@Override
	protected Serializable pkVal() {

		return this.id;
	}

	@Override
	public String toString() {

		return "BillItem{" +
				"id=" + id +
				", billlDetailId=" + billlDetailId +
				", itemName=" + itemName +
				", itemMoney=" + itemMoney +
				"}";
	}
}
